﻿<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>各工站测量数据上传系统</title>
    <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
    {% block styles %}
        <link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.min.css') }}">
    {% endblock %}
    <script src="/static/js/jquery-1.12.4.js"></script>
    <style>
        .file {
            position: relative;
            display: inline-block;
            background: #D0EEFF;
            border: 1px solid #99D3F5;
            border-radius: 4px;
            padding: 4px 12px;
            overflow: hidden;
            color: #1E88C7;
            text-decoration: none;
            text-indent: 0;
            line-height: 20px;
        }

        .file input {
            position: absolute;
            font-size: 100px;
            right: 0;
            top: 0;
            opacity: 0;
        }

        .file :hover {
            background: #AADFFD;
            border-color: #78C3F3;
            color: #004974;
            text-decoration: none;
        }
    </style>
</head>
<body>

<div class="container" align="center">
    <br>
    <h4 class="col-md-4"><p style="color:#00F"> 各工站测量数据上传系统</h4>
    <form method="post" enctype="multipart/form-data">
        {{ form1.csrf_token }}
        <div class="col-md-4">

            {{ form1.item_code.label }}<br>
            {{ form1.item_code }}<br>
            {% if form1.item_code.errors %}
                {% for message in form1.item_code.errors %}
                    <small class="error" style="color: red">{{ message }}</small><br>
                {% endfor %}
            {% endif %}
            <br>

            {{ form1.user_id.label }}<br>
            {{ form1.user_id }}<br>
            {% if form1.user_id.errors %}
                {% for message in form1.user_id.errors %}
                    <small class="error" style="color: red">{{ message }}</small><br>
                {% endfor %}
            {% endif %}
            <br>

            {{ form1.glue.label }}<br>
            {{ form1.glue }}<br>
            {% if form1.glue.errors %}
                {% for message in form1.glue.errors %}
                    <small class="error" style="color: red">{{ message }}</small><br>
                {% endfor %}
            {% endif %}
            <br>

{#            <a href="javascript:;" class='file'>{{ form1.excel_data(class='input_gtn')}}选择文件</a><br>#}
            {{ form1.excel_data(class='input_gtn')}}<br>
            {% if form1.excel_data.errors %}
                {% for message in form1.excel_data.errors %}
                    <small class="error" style="color: red">{{ message }}</small><br>
                {% endfor %}
            {% endif %}
            <br>

            {{ form1.notes.label }}
            {{ form1.notes }}
            <br>

        </div>
        <div class="col-md-2">
            {{ form1.submit(class='btn btn-success btn-lg btn-block') }}
        </div>
        <br>


    </form>
</div>
</body>
</html>


